package com.wyt.mapper;

import com.wyt.pojo.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
* @author 16970
* @description 针对表【user】的数据库操作Mapper
* @createDate 2022-09-08 09:58:21
* @Entity com.wyt.pojo.User
*/
@Mapper
public interface UserMapper extends BaseMapper<User> {
    User getUser(@Param("ID") String ID, @Param("password") String password);

    List<User> selectByPage(@Param("page") Integer page, @Param("limits") Integer limits, @Param("id") String id, @Param("name") String name, @Param("limit") String limit);

    int addUser(@Param("id") String id, @Param("name") String name, @Param("limit") Integer limit, @Param("password") String password);

    User getUserById(@Param("id") String id);
    void updateUserBook(@Param("ID") String ID,@Param("book1Id") Integer book1Id ,@Param("book2Id") Integer book2Id);
}




